﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="editProfile.aspx.vb" Inherits="diy_wc_prototype.editProfile" Debug="true"  %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
       <h3>First Name</h3>
    <asp:TextBox ID="tb_userFName" runat="server" Width="500px"></asp:TextBox>
      <h3>Last Name</h3>
    <asp:TextBox ID="tb_userLName" runat="server" Width="500px"></asp:TextBox>
      <h3>Age</h3>
    <br />
    <asp:TextBox ID="tb_userAge" runat="server" Width="500px"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
        ControlToValidate="tb_userAge" CssClass="failureNotification" 
        ErrorMessage="RangeValidator" MaximumValue="99" MinimumValue="16"></asp:RangeValidator>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
        ControlToValidate="tb_userAge" CssClass="failureNotification" 
        ErrorMessage="Required"></asp:RequiredFieldValidator>
   <h3>Location</h3>
    <asp:DropDownList ID="ddl_userLoc" runat="server" DataSourceID="ds_countiesUk" DataTextField="counties"
        DataValueField="counties" AppendDataBoundItems="True">
        <asp:ListItem Text="Please select" Value="" />
    </asp:DropDownList>
    <asp:SqlDataSource ID="ds_countiesUk" runat="server" ConnectionString="<%$ ConnectionStrings:diycakeConnectionString %>"
        ProviderName="<%$ ConnectionStrings:diycakeConnectionString.ProviderName %>"
        SelectCommand="SELECT [counties] FROM [countiesUk] ORDER BY [counties]"></asp:SqlDataSource>
    <h3>My Website</h3>
       <p>Got your own website, promote it! Be sure to add the http:// bit</p>
    <asp:TextBox ID="tb_userUrl" runat="server" Width="500px"></asp:TextBox>
       <ajaxToolkit:TextBoxWatermarkExtender ID="tb_userUrl_TextBoxWatermarkExtender" 
           runat="server" Enabled="True" TargetControlID="tb_userUrl" 
           WatermarkText="http://">
       </ajaxToolkit:TextBoxWatermarkExtender>
       <asp:RegularExpressionValidator
        ID="RegularExpressionValidator1" runat="server" ErrorMessage="Please enter a valid URL"
        ControlToValidate="tb_userUrl" 
           ValidationExpression="(http(s)?://)?([\w-]+\.)+[\w-]+(/[\w- ;,./?%&=]*)?" 
           CssClass="failureNotification"></asp:RegularExpressionValidator>
     <h3>About me</h3>
     <p>We&#39;re nosy! Tell us what you&#39;re like and what you&#39;re into</p>
    <asp:TextBox ID="tb_userDesc" runat="server" Width="500px" Height="150px" 
           Rows="10"></asp:TextBox>
     <h3>Twitter Name</h3>
     <p>Enter your Twitter handle (without the @)</p>
    <asp:TextBox ID="tb_userTwitter" runat="server" Width="500px"></asp:TextBox>
      <h3>Profile Picture</h3>
       <p>Hey hot stuff, show us what you look like</p>
      
    <asp:FileUpload ID="fu_profilePicture" runat="server" Width="500px" />
       <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
           ControlToValidate="fu_profilePicture" CssClass="failureNotification" 
           ErrorMessage="Required"></asp:RequiredFieldValidator>
    <br />
      <br />
    <asp:Button ID="btn_saveProfile" runat="server" Text="Save Profile" Width="120px" />
</asp:Content>
